package com.wangyongliang.dcruitmentfeign.web;

import com.wangyongliang.common.vo.ResultEntity;
import com.wangyongliang.dcruitmentfeign.service.ZhaoranService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("zhaoran")
public class CompanyController {

    @Autowired
    private ZhaoranService service;
    @RequestMapping("list")
    public ResultEntity list(Integer id){

        ResultEntity list = service.list(id);
        return list;
    }
    @RequestMapping("gong")
    public ResultEntity gong(){

        ResultEntity list = service.gong();
        return list;
    }
}
